package com.motong.gongdan.entity;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
    * 装配工单
    */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="装配工单")
@Data
@Accessors(chain = true)
@TableName(value = "assembly_work_order")
public class AssemblyWorkOrder extends PublicPo implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 装配工单编码
     */
    @TableField(value = "code")
    @ApiModelProperty(value="装配工单编码")
    private String code;

    /**
     * 工单数
     */
    @TableField(value = "work_order_num")
    @ApiModelProperty(value="工单数")
    private Integer workOrderNum;

    /**
     * 已结束工单数
     */
    @TableField(value = "end_worker_order_num")
    @ApiModelProperty(value="已结束工单数")
    private Integer endWorkerOrderNum;

    /**
     * 计划数
     */
    @TableField(value = "planed_num")
    @ApiModelProperty(value="计划数")
    private BigDecimal planedNum;

    /**
     * 完工数
     */
    @TableField(value = "finish_num")
    @ApiModelProperty(value="完工数")
    private BigDecimal finishNum;

    /**
     * 自定义字段(json字符串)
     */
    @TableField(value = "other")
    @ApiModelProperty(value="自定义字段(json字符串)")
    private String other;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 创建人(user表id)
     */
    @TableField(value = "create_user")
    @ApiModelProperty(value="创建人(user表id)")
    private Integer createUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="更新时间")
    private Date updateTime;

    /**
     * 更新人(user表id)
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value="更新人(user表id)")
    private Integer updateUser;

    @TableField(exist = false)
    private JSONArray customFieldMess;

    private static final long serialVersionUID = 1L;
}